<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class PasswordReset extends Model
{
    protected $table = 'password_resets';
    public $timestamps = false;
    protected $primaryKey = 'email';
    protected $keyType = 'string';
    public $incrementing = false;
    protected $guarded = [];

    //relation
    public function platUser()
    {
        return $this->belongsTo(PlatUser::class, 'email', 'username');
    }
}
